<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
    <style>
        .errorMsg{
            font-size: 12px;
            color: #f00;
        }
    </style>
</head>
<body>
    <h2>用户登陆</h2>
    <span class="errorMsg">
        <%
            Object errorMsg = request.getAttribute("errorMsg");
        %>
        <%=errorMsg !=null ? errorMsg : "" %>
    </span>
    <form action="login" method="get">
        用户名：<input type="text" name="username"> <br>
        密码：<input type="password" name="password"> <br>
        <input type="submit" value="登    陆">
    </form>
</body>
</html>
